import { createRouter, createWebHistory } from 'vue-router'

import LoginView from '@/views/LoginView.vue'

import IndexView from '../views/IndexView.vue'

import AppointmentlistView from '@/views/AppointmentListView.vue'

import appointmentCancel from '@/views/appointmentCancel.vue'


import ReportListView from '@/views/ReportListView.vue'



const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: LoginView
    },
    {
      path: '/login',
      name: 'login',
      component: LoginView
    },
    {
      path: '/index',
      name: 'index',
      component: IndexView
    },
    {
      path: '/cancel',
      name: 'cancel',
      component: appointmentCancel
    },
    {
      path: '/hospital',
      name: 'hospital',
      component: () => import('../views/HospitalView.vue')
    },
    {
      path: '/appointment',
      name: 'appointment',
      component: () => import('../views/AppointmentView.vue')
    },
    {
      path: '/appointmentList',
      name: 'appointmentList',
      component: AppointmentlistView
    },
    {
      path: '/register',
      name: 'register',
      component: () => import('../views/RegisterView.vue')
    },
    {
      path: '/setPassword',
      name: 'setPassword',
      component: () => import('../views/SetPasswordView.vue')
    },
    {
      path: '/setmeal',
      name: 'setmeal',
      component: () => import('../views/SetmealView.vue')
    },
    {
      path: '/personal',
      name: 'personal',
      component: () => import('../views/PersonalView.vue')
    },
    {
      path: '/selectDate',
      name: 'selectDate',
      component: () => import('../views/SelectDateView.vue')
    },
    {
      path: '/confirmOrder',
      name: 'confirmOrder',
      component: () => import('../views/ConfirmOrderView.vue')
    },
    {
      path: '/appointmentSuccess',
      name: 'appointmentSuccess',
      component: () => import('../views/AppointmentSuccessView.vue')
    },
    {
      path: '/reportlist',
      name: 'reportlist',
      component: ReportListView
    },
    {
      path: '/report',
      name:'report',
      component: () => import('../views/ReportView.vue')
    }
  ]
})

export default router
